<template>
    <div>
        <p>{{ SS }}秒后回到首页</p>
        <img src="../assets/404.jpg" alt="">
    </div>
</template>

<script>
export default {
    name: 'RouterHomeworkNotfind',

    data() {
        return {
            SS:3
        };
    },

    created() {
        const timeID = setInterval(() => {
            if (this.SS == 0) {
               this.$router.push('/find')
               clearInterval(timeID)
               return
            }
            this.SS--
        } , 1000)
    },

    methods: {
        
    },
};
</script>

<style lang="scss" scoped>

</style>